package com.nightsoul.dubbo.callback;

import java.util.HashMap;
import java.util.Map;


import com.nightsoul.dubbo.bean.Person;

public class Notify {
	public Map<Integer, Person> ret = new HashMap<>();
	public Map<Integer, Throwable> errors = new HashMap<>();
	
	public void onReturn(Person msg, Integer id) {
		System.out.println("onreturn:" + msg);
		ret.put(id, msg);
	}
	
	public void onThrow(Throwable ex, Integer id) {
		errors.put(id, ex);
	}
}
